home *** CD-ROM | disk | FTP | other *** search
- #include <iostream.h>
- #include <stdio.h>
- #include <osfcn.h>
- #include <libc.h>
-
- #include "RJS/Transport.h"
-
- void test ()
- {
- char buffer[10];
- RJS_UnixAddress ua("./sock");
- RJS_UnixStream server;
-
- server.open(ua,Socket::Client); // open connection to server
- server.read(buffer,6); // read from server
- cout << "Client read: " << buffer<< endl;
-
- }
-
- int main(int argc, char *argv[])
- {
- test();
- exit(0);
- }
-